
package com.zjff.myshop.front.pojo.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 保存订单param
 */
@Data
public class OrderInsertForm implements Serializable {

    @ApiModelProperty(value = "地址id", position = 1, required = true)
    @NotNull(message = "addressId不能为空")
    private Integer addressId;

    @ApiModelProperty(value = "备注", position = 2)
    private String note;

    @ApiModelProperty(value = "订单项id数组", position = 3, required = true)
    @NotEmpty(message = "goodsList不能为空")
    private List<OrderItemInsertForm> goodsList;
}
